package com.qf.dao.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.api.blog.entity.TagEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author sin
* @description 针对表【t_tag(文章标签表)】的数据库操作Mapper
* @createDate 2025-05-23 13:27:40
* @Entity com.qf.api.entity.TTag
*/
@Mapper
public interface TagMapper extends BaseMapper<TagEntity> {

    @Select("select name from t_tag where id in (select tag_id from t_article_tag where article_id = #{id})")
    List<String> selectTagByArticleId(Long id);
}




